Get List Of Files
AutomatR.Dropbox.Activities.GetListOfFiles
The "Get List Of Files" activity in AutomatR is part of the Dropbox activities package, designed to retrieve the list of files within a specified folder on a user's Dropbox account. This activity facilitates efficient management of files and enables further automation workflows.
Properties
Name | Description |
---|---|
Input | |
Folder Path | Specifies the path of the folder in Dropbox for obtaining the list of files. String variables containing the folder path. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get List Of Files" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
Output | |
Result | Outputs the list of files with datatype metadata. Variables of relevant types (e.g., List<Metadata> ) to store the retrieved files. |
How to Use
- Drag and drop the "Get List Of Files" activity onto the workflow.
- Configure the properties by specifying the folder path in Dropbox from which you want to obtain the list of files.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to retrieve the list of files from the specified folder in Dropbox.
Example:
Consider an example where the "Get List Of Files" activity is used to retrieve the list of files from a folder named "Documents" in Dropbox:
Get List Of Files:
Display Name: "List Documents Files"
Folder Path: "/Documents"
Response: listOfFiles
In this example, the activity retrieves the list of files from the "/Documents" folder in Dropbox, and the list of files is stored in the variable "listOfFiles" for further processing in the workflow.
Important Notes:
- Ensure that the activity is placed within a "Dropbox Scope" activity to establish the necessary authentication scope.
- Verify that the specified folder path in Dropbox exists; otherwise, an exception will be thrown.